import 'package:flutter/material.dart';

class InputBox extends StatelessWidget {
  final TextEditingController controller;

  const InputBox({super.key, required this.controller});


  @override
  Widget build(BuildContext context) {
    final focusNode = FocusNode();
    return SizedBox(
      height: 36,
      child: TextField(
        focusNode: focusNode,
        onTapOutside: (event) {focusNode.unfocus();},
        controller: controller,
        keyboardType: TextInputType.number,
        style: const TextStyle(color: Colors.grey),
        decoration: InputDecoration(
          contentPadding: const EdgeInsets.symmetric(horizontal: 10),
          border: OutlineInputBorder(
            borderRadius: BorderRadius.circular(4),
            borderSide: const BorderSide(color: Colors.grey),
          ),
          focusedBorder: OutlineInputBorder(
            borderSide: BorderSide(color: Colors.grey),
            borderRadius: BorderRadius.circular(4),
          ),
          enabledBorder: OutlineInputBorder(
            borderSide: BorderSide(color: Colors.grey),
            borderRadius: BorderRadius.circular(4),
          ),
        ),
      ),
    );
  }


}